home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0"?>
- <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
- <?xml-stylesheet href="chrome://minimap/skin/maps.css" type="text/css"?>
- <!DOCTYPE page SYSTEM "chrome://minimap/locale/minimap.dtd">
-
- <window id="sbminimap" title="&minimap.title;" onload="initMaps(); mapHome();" onunload="closeMaps();"
- xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" >
-
- <script type="application/x-javascript" src="chrome://global/content/globalOverlay.js" />
- <script type="application/x-javascript" src="chrome://global/content/nsDragAndDrop.js" />
- <script type="application/x-javascript" src="chrome://global/content/nsTransferable.js" />
- <script type="application/x-javascript" src="chrome://browser/content/utilityOverlay.js" />
- <script type="application/x-javascript" src="chrome://browser/content/browser.js" />
- <script type="application/x-javascript" src="chrome://minimap/content/rdfds.js" />
- <script type="application/x-javascript" src="chrome://minimap/content/tree.js" />
- <script type="application/x-javascript" src="chrome://minimap/content/import.js" />
- <script type="application/x-javascript" src="chrome://minimap/content/export.js" />
- <script type="application/x-javascript" src="chrome://minimap/content/maps.js" />
- <script type="application/x-javascript" src="chrome://minimap/content/json.js" />
- <script type="application/x-javascript" src="chrome://minimap/content/services.js"/>
-
-
- <popupset>
- <menupopup id="mapsContext"><!--{{{-->
- <menuitem label="&menuitem.map.options;" oncommand="myOptions();" />
- <menuitem label="&menuitem.setMapHome;" oncommand="setMapHome();" />
- <menuitem label="&menuitem.setStartAddress;" oncommand="setStartAddress();" />
- <menuitem label="&menuitem.about.accuracy;" oncommand="aboutAccuracy();" />
- <menuseparator />
- <menu label="&menuitem.address.directions.to;">
- <menupopup>
- <menuitem label="&menuitem.address.service.google;" oncommand="openAddressService('google-to');" />
- <menuitem label="&menuitem.address.service.yahoo;" oncommand="openAddressService('yahoo-to');" />
- <menuitem label="&menuitem.address.service.microsoft;" oncommand="openAddressService('microsoft-to');" />
- </menupopup>
- </menu>
- <menu label="&menuitem.address.directions.from;">
- <menupopup>
- <menuitem label="&menuitem.address.service.google;" oncommand="openAddressService('google-from');" />
- <menuitem label="&menuitem.address.service.yahoo;" oncommand="openAddressService('yahoo-from');" />
- <menuitem label="&menuitem.address.service.microsoft;" oncommand="openAddressService('microsoft-from');" />
- </menupopup>
- </menu>
- <menu label="&menuitem.directions.to.my.address;">
- <menupopup>
- <menuitem label="&menuitem.address.service.google;" oncommand="openAddressService('google-to-my');" />
- <menuitem label="&menuitem.address.service.yahoo;" oncommand="openAddressService('yahoo-to-my');" />
- <menuitem label="&menuitem.address.service.microsoft;" oncommand="openAddressService('microsoft-to-my');" />
- <menuitem label="&menuitem.address.service.preview;" oncommand="previewAddressService('preview-to','address');" />
- </menupopup>
- </menu>
- <menu label="&menuitem.directions.from.my.address;">
- <menupopup>
- <menuitem label="&menuitem.address.service.google;" oncommand="openAddressService('google-from-my');" />
- <menuitem label="&menuitem.address.service.yahoo;" oncommand="openAddressService('yahoo-from-my');" />
- <menuitem label="&menuitem.address.service.microsoft;" oncommand="openAddressService('microsoft-from-my');" />
- <menuitem label="&menuitem.address.service.preview;" oncommand="previewAddressService('preview-from','address');" />
- </menupopup>
- </menu>
- <menuseparator />
- <menu label="&menuitem.tagzania;">
- <menupopup>
- <menuitem label="&menuitem.tagzania.post;" oncommand="openAddressService('tagzania-post');" />
- <menuitem label="&menuitem.tagzania.nearby;" oncommand="openAddressService('tagzania-nearby');" />
- </menupopup>
- </menu>
- <menu label="&menuitem.platial;">
- <menupopup>
- <menuitem label="&menuitem.platial.places;" oncommand="openAddressService('platial-places');" />
- <menuitem label="&menuitem.platial.places.grab;" oncommand="openAddressService('platial-add');" />
- </menupopup>
- </menu>
- <menuseparator />
- <menu label="&menuitem.address.view.share;">
- <menupopup>
- <menuitem label="&menuitem.export.kml;" oncommand="exportMaps('kmlsel');" />
- <menuitem label="&menuitem.export.csv;" oncommand="exportMaps('csvsel');" />
- <menuitem label="&menuitem.export.gpx;" oncommand="exportMaps('gpxsel');" />
- <menuitem label="&menuitem.export.minimap;" oncommand="exportMaps('minimapsel');" />
- <menuitem label="&menuitem.address.view.latlng;" oncommand="shareLocation('latlng');" />
- <menuitem label="&menuitem.address.view.latlng.html;" oncommand="shareLocation('html');" />
- <menuitem label="&menuitem.address.view.link;" oncommand="shareLocation('link');" />
- <menuitem label="&menuitem.address.view.email;" oncommand="shareLocation('email');" />
- <menuitem label="&menuitem.address.view.site;" oncommand="openMinimapEmbed();" />
- </menupopup>
- </menu>
- <!--menuseparator /-->
- <menu label="&menuitem.address.view.location;">
- <menupopup>
- <!--menuitem label="&menuitem.openmaptab;" oncommand="openAddressService('map-tab');" /-->
- <menuitem label="&menuitem.view.in.google.earth;" oncommand="openAddressService('google-earth');" />
- <menuitem label="Flickr" oncommand="openAddressService('flickr');" />
- <menuitem label="Panoramio" oncommand="openAddressService('panoramio');" />
- <menuitem label="&menuitem.view.in.geody;" oncommand="openAddressService('geody');" />
- <menuitem label="&menuitem.view.in.localize;" oncommand="openAddressService('localize');" />
- <menuitem label="&menuitem.view.in.geonames;" oncommand="openAddressService('geonames');" />
- <menuitem label="&menuitem.view.in.geourl;" oncommand="openAddressService('geourl');" />
- <menuitem label="&menuitem.view.in.google;" oncommand="openAddressService('google');" />
- <menuitem label="&menuitem.view.in.yahoo;" oncommand="openAddressService('yahoo');" />
- <menuitem label="&menuitem.view.in.microsoft;" oncommand="openAddressService('microsoft');" />
- </menupopup>
- </menu>
- <menu label="&menuitem.address.view.nearby.about;">
- <menupopup>
- <menu label="&menuitem.address.view.upcoming;">
- <menupopup id="upcoming">
- </menupopup>
- </menu>
- <menu label="&menuitem.address.view.amazon;">
- <menupopup id="amazon">
- </menupopup>
- </menu>
- <menu label="&menuitem.address.view.ebay;">
- <menupopup id="ebay">
- </menupopup>
- </menu>
- <menu label="&menuitem.address.view.maps.com;">
- <menupopup id="mapscom">
- </menupopup>
- </menu>
- </menupopup>
- </menu>
- <menuseparator />
- <menuitem label="&menuitem.delete;" oncommand="delete_address();" />
- <menuitem label="&menuitem.properties;" oncommand="edit_address();" />
- <menuitem label="&menuitem.openurl;" oncommand="openAddressService('self');" />
- </menupopup><!--}}}-->
- </popupset>
-
-
- <popupset>
- <menupopup id="kmlContext"><!--{{{-->
- <menuitem label="&minimap.kml.delete;" oncommand="delete_Kml()" />
- <menuitem label="&minimap.kml.edit;" oncommand="edit_Kml()" />
- <menuitem label="&minimap.kml.google.earth;" oncommand="googleEarthKml()" />
- <menuitem label="&minimap.kml.embed;" oncommand="embed_Kml()" />
- </menupopup><!--}}}-->
- </popupset>
-
- <vbox flex="1" ondragover="nsDragAndDrop.dragOver(event,mapsObserver)" ondragdrop="nsDragAndDrop.drop(event,mapsObserver)" style="margin: 0px; padding: 0px; background-color: #555555; color: white;" >
- <hbox id="flock-maps-topbar-toolbar" style="margin: 0px; padding: 5px; background-color: #efeff2; color: white;" >
- <toolbarbutton id="myoptions" class="geobut" label="" tooltiptext="&menuitem.map.tools.tooltip;" type="menu" >
- <menupopup>
- <menu label="&menuitem.options.import;" tooltiptext="&menuitem.options.import;">
- <menupopup>
- <menuitem label="KML" oncommand="importMaps('kml');"/>
- <menuitem label="GPX" oncommand="importMaps('gpx');"/>
- <menuitem label=".minimap" oncommand="importMaps('minimap');"/>
- </menupopup>
- </menu>
- <menu label="&menuitem.options.export;" tooltiptext="&menuitem.options.export;">
- <menupopup>
- <menuitem label="KML" oncommand="exportMaps('kml');"/>
- <menuitem label="CSV" oncommand="exportMaps('csv');"/>
- <menuitem label="GPX" oncommand="exportMaps('gpx');"/>
- <menuitem label=".minimap" oncommand="exportMaps('minimap');"/>
- </menupopup>
- </menu>
- <menuitem id="" label="&menuitem.map.options;" tooltiptext="&menuitem.map.options;" oncommand="myOptions();" />
- <menuitem id="" label="&menuitem.map.help;" tooltiptext="&menuitem.map.help;" oncommand="minimapOpenUrl('help')" />
- <menuitem id="" label="&menuitem.map.homepage;" tooltiptext="&menuitem.map.homepage;" oncommand="minimapOpenUrl('home')" />
- <menuitem id="" label="&menuitem.map.release.notes;" tooltiptext="&menuitem.map.release.notes;" oncommand="minimapOpenUrl('release')" />
- <menuitem id="" label="&menuitem.map.donate;" tooltiptext="&menuitem.map.donate;" oncommand="minimapOpenUrl('donate')" />
- </menupopup>
- </toolbarbutton>
- <spacer flex="1" />
- <toolbarbutton id="dragzoom" class="geobut" label="" tooltiptext="&menuitem.map.dragzoom;" oncommand="extDragZoom()" /><spacer flex="1" />
- <toolbarbutton id="zoomin" class="geobut" label="" tooltiptext="&menuitem.map.zoomin;" oncommand="extZoomIn()" /><spacer flex="1" />
- <toolbarbutton id="zoomout" class="geobut" label="" tooltiptext="&menuitem.map.zoomout;" oncommand="extZoomOut()" /><spacer flex="1" />
- <toolbarbutton id="zoominplus" class="geobut" label="" tooltiptext="&menuitem.map.zoominplus;" oncommand="extZoomInPlus()" /><spacer flex="1" />
- <toolbarbutton id="zoomoutplus" class="geobut" label="" tooltiptext="&menuitem.map.zoomoutplus;" oncommand="extZoomOutPlus()" /><spacer flex="1" />
- <toolbarbutton id="undo" class="geobut" label="" tooltiptext="&menuitem.map.undo;" oncommand="extUndo();" /> <spacer flex="1" />
-
- <toolbarbutton id="maptype" class="geobut" tooltiptext="Map Type" type="menu">
- <menupopup>
- <menuitem id="" label="&menuitem.map.maptype;" tooltiptext="&menuitem.map.maptype;" oncommand="extMapType('Map');" type="radio" name="maptype"/>
- <menuitem id="" label="&menuitem.map.sattype;" tooltiptext="&menuitem.map.sattype;" oncommand="extMapType('Satellite');" type="radio" name="maptype"/>
- <menuitem id="" label="&menuitem.map.hybtype;" tooltiptext="&menuitem.map.hybtype;" oncommand="extMapType('Hybrid');" type="radio" name="maptype"/>
- <menuitem id="" label="Google Terrain Map" tooltiptext="Google Terrain Map" oncommand="extMapType('Terrain');" type="radio" name="maptype"/>
- <menuitem id="" label="Google Earth Map" tooltiptext="Google Earth Map" oncommand="extMapType('Earth');" type="radio" name="maptype"/>
- </menupopup>
- </toolbarbutton>
- <spacer flex="1" />
- <toolbarbutton id="traffic" class="geobut" label="" tooltiptext="&menuitem.map.traffic;" oncommand="extTrafficToggle();" /><spacer flex="1" />
- <toolbarbutton id="panadd" class="geobut" label="" tooltiptext="&menuitem.map.panaddress;" oncommand="extPanAdd()" /><spacer flex="1" />
- <toolbarbutton id="homemap" class="geobut" label="" tooltiptext="&menuitem.map.maphome;" oncommand="extMapHome()" /><spacer flex="1" />
- <toolbarbutton id="addAddress" class="geobut" label="" tooltiptext="&menuitem.map.add.main.tooltip;" type="menu" >
- <menupopup>
- <menuitem id="" label="&menuitem.map.addaddress;" tooltiptext="&menuitem.map.addaddress;" oncommand="add_from_input()" />
- <menuitem id="" label="&menuitem.map.addcrosshair;" tooltiptext="&menuitem.map.addcrosshair;" oncommand="extAddCrosshair()" />
- <menuitem id="" label="&menuitem.map.addkml;" tooltiptext="&menuitem.map.addkml;" oncommand="addKmlUrlPrompt()" />
- </menupopup>
- </toolbarbutton>
- </hbox>
- <browser id="flock-maps-minibrowser" src="http://maps.stcstm.org/firefox_map_0_3_0.html" flex="1" style="border: 1px solid rgb(51, 51, 51); overflow: hidden" onclick="return window.parent.contentAreaClick(event, true);" />
- <splitter collapse="before" resizeafter="farthest"></splitter>
-
- <listbox seltype="single" id="multiaddress-list" hidden="true" height="200" context="" onclick="multiAddressAdd(this.value);" >
- </listbox>
- <deck id="maps-deck" selectedIndex="0" height="200">
- <vbox align="center" pack="center" id="maps_instructions" flex="1">
- <description>&description.drop.address.or.link;</description>
- </vbox>
- <vbox flex="1" style="padding: 5px;">
- <deck id="minimap-deck" selectedIndex="0" flex="1">
- <vbox flex="1" style="border: solid 2px #fff; -moz-border-radius: 5px 5px 5px 0;" >
- <tree id="address_list" flex="1" datasources="" ref="" flags="dont-build-content" onkeypress="maps_keypress(event)" context="mapsContext" onselect="show()" ondraggesture="nsDragAndDrop.startDrag(event, addressObserver, true);">
- <treecols>
- <treecol id="idCol" class="address_list_cols" label="id" hidden="true" ignoreincolumnpicker="true" flex="1" />
- <treecol id="Name" class="address_list_cols" label="&treecol.name;" flex="1" sort="rdf:http://www.flock.com/rdf/maps#title" sortDirection="ascending" sortActive="true" style="font-style: italic" persist="width ordinal hidden"/>
- <splitter class="tree-splitter" />
- <treecol id="Address" class="address_list_cols" label="&treecol.address;" flex="1" hidden="true" sort="rdf:http://www.flock.com/rdf/maps#location" sortDirection="ascending" style="font-style: italic" persist="width ordinal hidden"/>
- <splitter class="tree-splitter" />
- <treecol id="Accuracy" class="address_list_cols" label="&treecol.accuracy;" flex="1" hidden="true" sort="rdf:http://www.flock.com/rdf/maps#accuracy" sortDirection="ascending" style="font-style: italic" persist="width ordinal hidden"/>
- <splitter class="tree-splitter" />
- </treecols>
- <template>
- <rule>
- <treechildren>
- <treeitem uri="rdf:*">
- <treerow properties="makeItClear">
- <treecell class="address_list_cols" label="rdf:http://www.flock.com/rdf/maps#id" />
- <treecell class="address_list_cols" label="rdf:http://www.flock.com/rdf/maps#title" />
- <treecell class="address_list_cols" label="rdf:http://www.flock.com/rdf/maps#location" />
- <treecell class="address_list_cols" label="rdf:http://www.flock.com/rdf/maps#accuracy" />
- </treerow>
- </treeitem>
- </treechildren>
- </rule>
- </template>
- </tree>
- </vbox>
- <vbox flex="1" style="border: solid 2px #fff; -moz-border-radius: 5px 5px 5px 0;" >
- <spacer flex="1" />
- <grid>
- <columns>
- <column flex="0"/>
- <column flex="1"/>
- </columns>
- <rows>
- <row>
- <vbox flex="0">
- <hbox>
- <vbox>
- <spacer flex="1"/>
- <label value="&menuitem.directions.list.label.from;" style="color: #fff"/>
- <spacer flex="1"/>
- </vbox>
- <toolbarbutton type="menu" dir="reverse" id="directions-from-list" class="geobutc"
- datasources="" ref="" style="color: #000" sortResource="http://www.flock.com/rdf/maps#title" sortDirection="ascending">
- <menupopup>
- <menuitem id="directions-from-list-default" label="&menuitem.directions.list.default;" style="font-weight: bold" oncommand="directionsTextboxFrom(this.value)"/>
- <menuseparator />
- </menupopup>
- <template>
- <rule>
- <menupopup>
- <menuitem uri="rdf:*" id="rdf:http://www.flock.com/rdf/maps#id" label="rdf:http://www.flock.com/rdf/maps#title" value="rdf:http://www.flock.com/rdf/maps#location" oncommand="directionsMove(this.id); directionsTextboxFrom(this.value)"/>
- </menupopup>
- </rule>
- </template>
- </toolbarbutton>
- </hbox>
- </vbox>
- <vbox flex="0">
- <textbox id="directions-from-textbox" value="" flex="1"/></vbox>
- </row>
- <row>
- <vbox flex="0">
- <hbox>
- <vbox>
- <spacer flex="1"/><label value="&menuitem.directions.list.label.to;" style="color: #fff"/><spacer flex="1"/></vbox>
- <toolbarbutton id="directions-to-list" type="menu" class="geobutc" dir="reverse"
- datasources="" ref="" style="color: #000" sortResource="http://www.flock.com/rdf/maps#title" sortDirection="ascending">
- <menupopup>
- <menuitem id="directions-to-list-default" label="&menuitem.directions.list.default;" style="font-weight: bold" oncommand="directionsTextboxTo(this.value)"/>
- <menuseparator />
- </menupopup>
- <template>
- <rule>
- <menupopup>
- <menuitem uri="rdf:*" id="rdf:http://www.flock.com/rdf/maps#id" label="rdf:http://www.flock.com/rdf/maps#title" value="rdf:http://www.flock.com/rdf/maps#location" oncommand="directionsMove(this.id); directionsTextboxTo(this.value)"/>
- </menupopup>
- </rule>
- </template>
- </toolbarbutton>
- </hbox>
- </vbox>
- <vbox flex="0">
- <textbox id="directions-to-textbox" value="" flex="1"/></vbox>
- </row>
- <row>
- <vbox flex="0">
-
- <label value="&menuitem.directions.list.action;" style="color: #fff"/>
- </vbox>
- <vbox flex="0">
- <hbox>
- <toolbarbutton id="preview" class="geobutc" tooltiptext="&menuitem.directions.list.preview;" oncommand="directionsDo('preview')"/>
- <toolbarbutton id="share" class="geobutc" tooltiptext="&menuitem.directions.list.share;" oncommand="directionsDo('share')"/>
- <toolbarbutton id="email" class="geobutc" tooltiptext="&menuitem.directions.list.email;" oncommand="directionsDo('email')"/>
- <toolbarseparator />
-
- <toolbarbutton id="google" class="geobutc" tooltiptext="&menuitem.directions.list.google;" oncommand="directionsDo('google')"/>
- <toolbarbutton id="yahoo" class="geobutc" tooltiptext="&menuitem.directions.list.yahoo;" oncommand="directionsDo('yahoo')"/>
- <toolbarbutton id="microsoft" class="geobutc" tooltiptext="&menuitem.directions.list.microsoft;" oncommand="directionsDo('microsoft')"/>
- </hbox>
- </vbox>
- </row>
- </rows>
- </grid>
- <spacer flex="1" />
- </vbox>
- <vbox flex="1" style="overflow: auto; border: solid 2px #fff; -moz-border-radius: 5px 5px 5px 0;" >
- <richlistbox id="kml-list" context="kmlContext" >
- </richlistbox>
- <spacer flex="1"/>
- <description style="color: #fff;">&minimap.kml.label;</description>
- </vbox>
- </deck>
- <hbox>
- <tabs class="" >
- <tab type="radio" class="minimapTabs" onclick="switchMinimapTabs('0')">
- <label value="&minimap.tab.addresses;"/>
- </tab>
- <tab type="radio" class="minimapTabs" onclick="switchMinimapTabs('1')">
- <label value="&minimap.tab.directions;"/>
- </tab>
- <tab type="radio" class="minimapTabs" onclick="switchMinimapTabs('2')">
- <label value="&minimap.tab.kml;"/>
- </tab>
- </tabs>
- <spacer flex="1" /></hbox>
- </vbox>
- <vbox flex="1">
- <spacer flex="1" />
- <hbox flex="1">
- <spacer flex="1" />
- <image src="chrome://minimap/skin/ajax-loader.gif" maxheight="22px" maxwidth="126px" />
- <spacer flex="1" />
- </hbox>
- <spacer flex="1" />
- </vbox>
- </deck>
- </vbox>
- </window>
-